/*
 * Copyright (C) 2012-2016 TeraCN
 * 
 * This file is part of TeraCN.
 * 
 * TeraCN is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * TeraCN is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 */
package tera.gameserver.network.serverpackets;

import java.nio.ByteBuffer;

import tera.gameserver.network.ServerPacketType;

/**
 * @author Ronn Mod Evestu
 */
public class S_Artisan_List extends ServerConstPacket
{
	private static final S_Artisan_List instance = new S_Artisan_List();
	
	/**
	 * Method getInstance.
	 * @return S_Artisan_List
	 */
	public static S_Artisan_List getInstance()
	{
		return instance;
	}
	
	/**
	 * Method getPacketType.
	 * @return ServerPacketType
	 */
	@Override
	public ServerPacketType getPacketType()
	{
		return ServerPacketType.S_ARTISAN_SKILL_LIST;
	}
	
	/**
	 * Method writeImpl.
	 * @param buffer ByteBuffer
	 */
	@Override
	protected void writeImpl(ByteBuffer buffer)
	{
		writeOpcode(buffer);
		writeShort(buffer, 5);
		writeShort(buffer, 25);
		writeInt(buffer, 0);
		writeInt(buffer, 0);
		writeInt(buffer, 0x48000000);
		writeInt(buffer, 0x00000E44);
		writeByte(buffer, 0);
		writeShort(buffer, 25);
		writeShort(buffer, 57);
		writeInt(buffer, 6);
		writeInt(buffer, 6);
		writeInt(buffer, 0x3F800000);
		writeInt(buffer, 0xFFFFFFFF);
		writeInt(buffer, 1);
		writeInt(buffer, 0xFFFFFFFF);
		writeInt(buffer, 0);
		writeShort(buffer, 57);
		writeShort(buffer, 89);
		writeInt(buffer, 7);
		writeInt(buffer, 7);
		writeInt(buffer, 0x3F800000);
		writeInt(buffer, 0xFFFFFFFF);
		writeInt(buffer, 1);
		writeInt(buffer, 0xFFFFFFFF);
		writeInt(buffer, 0);
		writeShort(buffer, 89);
		writeShort(buffer, 121);
		writeInt(buffer, 21);
		writeInt(buffer, 21);
		writeInt(buffer, 0x3F800000);
		writeInt(buffer, 0xFFFFFFFF);
		writeInt(buffer, 1);
		writeInt(buffer, 0xFFFFFFFF);
		writeInt(buffer, 0);
		writeShort(buffer, 121);
		writeShort(buffer, 153);
		writeInt(buffer, 22);
		writeInt(buffer, 22);
		writeInt(buffer, 0x3F800000);
		writeInt(buffer, 0xFFFFFFFF);
		writeInt(buffer, 1);
		writeInt(buffer, 0xFFFFFFFF);
		writeInt(buffer, 0);
		writeShort(buffer, 153);
		writeShort(buffer, 0);
		writeInt(buffer, 23);
		writeInt(buffer, 23);
		writeInt(buffer, 0x3F800000);
		writeInt(buffer, 0xFFFFFFFF);
		writeInt(buffer, 1);
		writeInt(buffer, 0xFFFFFFFF);
		writeInt(buffer, 0);
	}
}